package cn.dkk.behavior_design.observer;

/**
 * @author dkk
 * @date 2022/7/26
 * @desc
 */
public class Test {
    public static void main(String[] args) {
        MySubject mySubject = new MySubject();
        mySubject.attach(new FirstObserver("DKK"));
        mySubject.attach(new FirstObserver("杜二狗"));
        mySubject.notify("你们到底谁是杜二狗?");
    }
}
